//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

public class UserService {
    private UserDao userDao;

    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }

    public boolean login(String username, String password) {
        User user = this.userDao.findUser(username);
        return user != null && user.getPassword().equals(password);
    }
}
